package cn.yuanqiao.es.service;


import cn.yuanqiao.es.domain.QueryFile;
import com.alibaba.fastjson.JSONObject;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * @ProjectName: JZSDAS
 * @Package: cn.yuanqiao.es.service
 * @ClassName: AppRetrievalService
 * @Author: lenovo
 * @Description: hbWang
 * @Date: 2023/11/8 11:24
 * @Version: 1.0
 */
public interface AppRetrievalService {
    /**
     * 查询当前用户门类信息
     *
     * @param
     * @return java.util.List<java.util.Map < java.lang.String, java.lang.Object>>
     * @author hbWang
     * @date 2023/6/30 9:50
     */
    List<Map<String, Object>> categoryList(String menuId);

    /**
     * 查询展示字段信息
     *
     * @param json
     * @return
     */
    List<Map<String, String>> queryFields(JSONObject json);

    /**
     * 查询数据
     * @param queryFile
     * @return
     */
    public  Map<String, Object> searchApp(QueryFile queryFile);

    /**
     * 查询文件列表
     * @param json
     * @return
     */
    public List<Map<String, Object>> queryEfile(JSONObject json);

    /**
     * 文件预览
     *
     * @param request
     * @param response
     * @throws Exception
     */
    public void view(HttpServletRequest request, HttpServletResponse response) throws Exception;
}
